<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th>渠道名称</th>
            <th>可走属性</th>
            <th>不可走属性</th>
            <th>可走SKU</th>
            <th>不可走SKU</th>
            <th>状态</th>
            <th>备注</th>
            <th>录入时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td>{$item.channel.channel_name}</td>
                <td class="text-left">{php}echo join(', ', \app\common\model\ChannelAttr::getNameByIds($item['include_attr']));{/php}</td>
                <td class="text-left">{php}echo join(', ', \app\common\model\ChannelAttr::getNameByIds($item['exlude_attr']));{/php}</td>
                <td class="text-left">{$item.include_sku}</td>
                <td class="text-left">{$item.exlude_sku}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['allow_id'=>$item['allow_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td class="text-left">{$item.remark}</td>
                <td class="text-left">{$item.create_time|substr=0,10}</td>
                <td><a href="{:url('add',['allow_id'=>$item['allow_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" width-form="80%" title="编辑可走属性配置">编辑</a>
                    <a href="{:url('delete',['ids'=>$item['allow_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="9">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>